﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GISDeveloping_test2
{
    class Program
    {
        static void Main(string[] args)
        {
            //Circle c = new Circle();
            //Rectangle r = new Rectangle();
            //c.Draw();
            //c.Print();
            //r.Resize();
            Human h = new Human();
            h.Birth();
            h.Death();
            h.Talk();
            Dog d = new Dog();
            d.Birth();
            Parrot p = new Parrot();
            p.Fly();



        }


       
    }
    public interface IGeometry
    {
        void Print();
    }

    public interface IDrawable : IGeometry
    {
        void Draw();
    }

    public interface IResizeable : IGeometry
    {
        void Resize();
    }

    public class Circle :IDrawable
    {
        public void Print()
        {
            Console.WriteLine("This is a geometry.");
        }
        public void Draw()
        {
            Console.WriteLine("Draw a circle.");
        }
    }

    public class Rectangle : IResizeable
    {
        public void Print()
        {
            Console.WriteLine("This is a geometry.");
        }
        public void Resize()
        {
            Console.WriteLine("Rectangle is resized.");
        }

    }

    public class Triangle : IGeometry
    {
        public void Print()
        {
            Console.WriteLine("This is a Triangle.");
        }
    }
}

